#include "NotFoundController.h"
namespace controller {
    void NotFoundController::service(HttpRequest &request, HttpResponse &response) {
        static std::string content = ""
        "<center>"
        "<h1>404 NOT FOUND</h1>"
        "<hr>"
        "<p>Power by x-sync</p>"
        "</center>";
        response.setContentLength(content.length())
                .setStatus(404, "Not Found")
                .setContentType("text/html;charset=utf-8")
                .write(content);
    }
}
